<?php
/* @var $this CustomerResidentController */
/* @var $model CustomerResident */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'customer-resident-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'sm_storename'); ?>
		<?php echo $form->textField($model,'sm_storename',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'sm_storename'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'sm_storetype'); ?>
		<?php echo $form->textField($model,'sm_storetype',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'sm_storetype'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'sm_storemanager'); ?>
		<?php echo $form->textField($model,'sm_storemanager',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'sm_storemanager'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'sm_telnum'); ?>
		<?php echo $form->textField($model,'sm_telnum'); ?>
		<?php echo $form->error($model,'sm_telnum'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'sm_mallbranch'); ?> 
	<?php echo $form->dropDownList($model,'sm_mallbranch',array("Aura Premier"=>"Aura Premier", "Angono"=>"Angono", 
	"Bacolod"=>"Bacolod", "Bacoor"=>"Bacoor", "Baguio"=>"Baguio", "Baliwag"=>"Baliwag", "Batangas"=>"Batangas", "BF Paranaque"=>"BF Paranaque", "Bicutan"=>"Bicutan", 
	"Cagayan De Oro"=>"Cagayan De Oro", "Calamba"=>"Calamba", "Cauayan"=>"Cauayan", "Cebu"=>"Cebu", "Clark"=>"Clark", "Consolacion"=>"Consolacion", 
	"Dasmarinas"=>"Dasmarinas", "Davao"=>"Davao", "Fairview"=>"Fairview", "General Santos"=>"General Santos", "Iloilo"=>"Iloilo",
	"Lanang Premier"=>"Lanang Premier", "Las Pinas"=>"Las Pinas", "Lipa"=>"Lipa", "Lucena"=>"Lucena",
	"Mall of Asia"=>"Mall of Asia", "Manila"=>"Manila", "Marikina"=>"Marikina", "Marilao"=>"Marilao", "Masinag"=>"Masinag", "Megamall"=>"Megamall", "Molino"=>"Molino", "Muntinlupa"=>"Muntinlupa", 
	"Naga"=>"Naga", "North Edsa"=>"North Edsa", "Novaliches"=>"Novaliches", 
	"Olangapo"=>"Olangapo", "Pampanga"=>"Pampanga", "Pasig"=>"Pasig", "Rosales"=>"Rosales", "Rosario"=>"Rosario",
	"San Fernando"=>"San Fernando", "San Lazaro"=>"San Lazaro", "San Pablo"=>"San Pablo", "Santa Mesa"=>"Santa Mesa", "Santa Rosa"=>"Santa Rosa", "Sucat"=>"Sucat", "Southmall"=>"Southmall",
	"Tarlac"=>"Tarlac", "Taytay"=>"Taytay", "Valenzuela"=>"Valenzuela") 

    	,array('empty'=>'Select a Mall Branch')); ?>

        <?php echo $form->error($model,'sm_mallbranch'); ?> 
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'contact_main'); ?>
		<?php echo $form->textField($model,'contact_main',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'contact_main'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'contact_address'); ?>
		<?php echo $form->textField($model,'contact_address',array('size'=>60,'maxlength'=>80)); ?>
		<?php echo $form->error($model,'contact_address'); ?>
	</div>	

	<div class="row">
		<?php echo $form->labelEx($model,'contact_maintel'); ?>
		<?php echo $form->textField($model,'contact_maintel'); ?>
		<?php echo $form->error($model,'contact_maintel'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'contact_email'); ?>
		<?php echo $form->textField($model,'contact_email',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'contact_email'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'contact_name'); ?>
		<?php echo $form->textField($model,'contact_name',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'contact_name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'contact_telnum'); ?>
		<?php echo $form->textField($model,'contact_telnum'); ?>
		<?php echo $form->error($model,'contact_telnum'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->
